package models

import "tuowei.com/common/models"

type SysColleges struct {
	models.Model
	CollegesName string        `json:"colleges_name" gorm:"type:varchar(50);not null;comment:院校名称"`
	Province     int           `json:"province" gorm:"type:int(10);comment:所属大区ID"`
	ProvinceText string        `json:"province_text" gorm:"type:varchar(20);comment:所属大区名称"`
	City         int           `json:"city" gorm:"type:int(10);comment:所属城市ID"`
	CityText     string        `json:"city_text" gorm:"type:int(10);comment:所属城市名称"`
	DeptId       int           `json:"dept_id" gorm:"type:int(5);comment:所属教学点ID"`
	DeptIdText   string        `json:"dept_id_text" gorm:"type:varchar(50);comment:所属教学点名称"`
	Dept         *CollegesDept `json:"dept"`
	models.ControlBy
	models.ModelTime
}

func (SysColleges) TableName() string {
	return "sys_colleges"
}

type Colleges struct {
	models.Model
	CollegesName string `json:"colleges_name" gorm:"type:varchar(50);not null;comment:院校名称"`
}

func (Colleges) TableName() string {
	return "sys_colleges"
}
